File manager - Edit - /home/autoph/public_html/projects/AutoHub-Kiosk-Final/storage/framework/views/aaa28b614a938c9c3ec89f63e3406e858500f85f.php
Back
<?php $__env->startSection('css'); ?> <style> .rate-hover-layer{ color: orange; } .rate-select-layer{ color: orange; } .rating-div { position: relative; /* border: 1px solid red; */ /* overflow:hidden; */ } .thankyou-card { position: absolute; top: 50%; /* Center vertically */ left: 50%; /* Center horizontally */ transform: translate(-50%, -50%); /* Center vertically and horizontally */ /* border:1px solid green; */ } /* Medium devices (landscape tablets, 768px and up) */ @media only screen and (min-width: 768px) { /* @media only screen and (min-width:321px) and (max-width:768px){ */ .txtArea{ border-radius:50px; border:1px solid #cccc !important; background-color:#ffff !important; height:15em; } #titletxt{ /* color:red; */ } #rating-submit{ margin-top:0.5em; border-radius:15px ; height:4rem; } .stars{ font-size: 6rem; } } /* mobile portrait */ @media only screen and (min-device-width: 320px) and (max-device-width: 479px){ .txtArea{ border:1px solid #cccc !important; background-color:#ffff !important; height:12em; } #titletxt{ /* color:red; */ } #rating-submit{ margin-top:0.3em; border-radius:15px ; } .stars{ /* border:1px solid green; */ font-size: 3.4rem; text-align:center; } } </style> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <?php $__env->startSection('header'); ?> <?php $__env->stopSection(); ?> <div class="rating-div"> <div class="card bg-light rating-card"> <div class="card-body" style="height:600px;"> <center> <h2 id="titletxt"> <i>How satisfied are you with your recent experience with us?</i> </h2> </center> <center> <div class="stars" style="width:100%;margin-left:-15px;"></div> <label for="" id="rating_id" style="font-size: 2rem; font-weight:bolder"></label> </center> <center> <div class="form-group" style="margin-bottom: -1rem !important"> <textarea class="form-control txtArea" name="rating_comment" id="rating_comment" cols="30" style="border-radius:15px !important;"></textarea> <button class="btn btn-primary btn-lg btn-block" id="rating-submit" style=""> Submit </button> </div> </center> </div> </div> </div> <div class="thankyou-div"> <div class="card bg-light thankyou-card" hidden> <div class="card-body"> <center><h1>Thank you for visiting <?php echo e(App\Models\User::where('token',Request::segment(2))->pluck('comp_name')->first()); ?>!</h1></center> </div> </div> </div> <?php $__env->startSection('footer'); ?> <?php $__env->stopSection(); ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('javascript'); ?> <script src="<?php echo e(asset('js/rater.min.js')); ?>"></script> <script> var rating_val = null; var rating_field = $('#rating_id'); var options = { max_value: 5, step_size: 1, symbols:{ utf32_emoticons: { base: [0x1F625,0x1F613,0x1F610,0x1F60A,0x1F604], hover: [0x1F625,0x1F613,0x1F610,0x1F60A,0x1F604], selected: [0x1F625,0x1F613,0x1F610,0x1F60A,0x1F604], } }, selected_symbol_type: 'utf32_emoticons', convert_to_utf8: true, only_select_one_symbol: true, } $('.stars').rate(options); rating_field.text("Please choose"); $('.stars').on('change', function(ev,data){ switch (data.to) { case 5: rating_field.text("Very Satisfied"); rating_val = 5; break; case 4: rating_field.text("Satisfied"); rating_val = 4; break; case 3: rating_field.text("Neutral"); rating_val = 3; break; case 2: rating_field.text("Disatisfied"); rating_val = 2; break; case 1: rating_field.text("Very Disatisfied"); rating_val = 1; break; default: break; } }); $('#rating-submit').on('click', function(e){ e.preventDefault(); $.ajax({ type: "POST", url: "/feedback", dataType: 'json', data: { star:rating_val, feedback:$('#rating_comment').val() }, // processData: false, // contentType: false, headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') }, success: function(result){ $('.rating-card').attr("hidden",true) $('.thankyou-card').attr("hidden",false) }, error: function(error){ } }); }); </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.layouts', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/autoph/public_html/projects/AutoHub-Kiosk-Final/resources/views/verify/thankyou.blade.php ENDPATH**/ ?>
| ver. 1.4 |
.
| PHP 8.1.32 | Generation time: 0 |
proxy
|
phpinfo
|
Settings